package com.emerquim.persistence.dao;

// default package



/**
 * OrganismoEventoId entity. @author MyEclipse Persistence Tools
 */

public class OrganismoEventoId  implements java.io.Serializable {


    // Fields    

     private Evento evento;
     private PConxent PConxent;


    // Constructors

    /** default constructor */
    public OrganismoEventoId() {
    }

    
    /** full constructor */
    public OrganismoEventoId(Evento evento, PConxent PConxent) {
        this.evento = evento;
        this.PConxent = PConxent;
    }

   
    // Property accessors

    public Evento getEvento() {
        return this.evento;
    }
    
    public void setEvento(Evento evento) {
        this.evento = evento;
    }

    public PConxent getPConxent() {
        return this.PConxent;
    }
    
    public void setPConxent(PConxent PConxent) {
        this.PConxent = PConxent;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof OrganismoEventoId) ) return false;
		 OrganismoEventoId castOther = ( OrganismoEventoId ) other; 
         
		 return ( (this.getEvento()==castOther.getEvento()) || ( this.getEvento()!=null && castOther.getEvento()!=null && this.getEvento().equals(castOther.getEvento()) ) )
 && ( (this.getPConxent()==castOther.getPConxent()) || ( this.getPConxent()!=null && castOther.getPConxent()!=null && this.getPConxent().equals(castOther.getPConxent()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getEvento() == null ? 0 : this.getEvento().hashCode() );
         result = 37 * result + ( getPConxent() == null ? 0 : this.getPConxent().hashCode() );
         return result;
   }   





}